import { priorityList } from '@/pages/common/constant.js';

const priorityHandlerPlugin = {
  install(Vue) {
    Vue.mixin({
      methods: {
        priorityHandler(priority) {
          return priorityList.find(item => +item.value === +priority) ?? {};
        }
      }
    });
  }
};

export default priorityHandlerPlugin;
